<template>
    <div>
        <LogList :current-user="user" :tenant-id="tenant_id" :teams="teams" :teamid="teamId" />
    </div>
</template>

<script setup lang="ts">
import { computed, inject } from 'vue';
import { useStore } from 'vuex';
import LogList from '../../components/AI/AILog.vue';
import { Storekey } from '../../interface';

const tenant_id = inject<string | undefined>("tenant_id", undefined);

const store = useStore(Storekey)
const user = computed(() => {
    // return store.getters.getuser;
    return store.state.user;
});
const teamId = computed(() => {
    return Number(user.value?.teamid)
})
const teams = computed(() => store.getters.getteam);
</script>